﻿namespace Wips.Domain.Models
{
    /// <summary>
    /// 子系统
    /// </summary>
    [SugarTable("agent_server")]
    public class AgentServer : EntityBase, IAggregateRoot
    {

        /// <summary>
        /// 服务key
        /// </summary>
        public string ServerKey { get; set; } = "";

        /// <summary>
        /// 服务名称
        /// </summary>
        public string ServerName { get; set; } = "";


        /// <summary>
        /// 配置
        /// </summary>
        [Navigate(NavigateType.OneToMany, nameof(AgentServerConfig.AgentServerId))]
        public List<AgentServerConfig>? AgentServerConfigs { get; set; }

        /// <summary>
        /// 公开地址
        /// </summary>
        public string AgentAddress { get; set; } = "";


    }
}
